package cn.yunhe.crm.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 任务清单实体类
 * 
 * @author 张旭航
 */

public class Tasklist {
	private Integer id;// 主键

	private Orders orders;

	private Integer oid;// 订单--外键

	private Integer tasktype;// 任务类型 :1代表设计，2代表修改

	private String taskdetail;// 任务详情

	private Emp emp;

	private Integer eid;// 员工表--外键--查询发布人

	private Integer tasklevel;// 任务级别 :1代表一般，2代表重要，3代表非常重要

	private Date begintime;// 开始日期

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endtime;// 结束日期

	private Integer taskstate;// 任务状态 :1代表未完成，2代表进行中，3代表已完成

	private Integer delstate;// 删除状态 :0代表未删除，1代表删除

	private Integer urgentstate;// 申请加急状态 :0代表驳回，1代表批准

	private Integer duedate;// 到期天数: 0代表准时，1代表超时

	private Dept dept1;

	private Integer dodept;// 任务实施部门--外键--关联部门表

	private Dept dept2;

	private Integer otherdodept;// 协助部门--外键--关联部门表

	public Orders getOrders() {
		return orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public Emp getEmp() {
		return emp;
	}

	public void setEmp(Emp emp) {
		this.emp = emp;
	}

	public Dept getDept1() {
		return dept1;
	}

	public void setDept1(Dept dept1) {
		this.dept1 = dept1;
	}

	public Dept getDept2() {
		return dept2;
	}

	public void setDept2(Dept dept2) {
		this.dept2 = dept2;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public Integer getTasktype() {
		return tasktype;
	}

	public void setTasktype(Integer tasktype) {
		this.tasktype = tasktype;
	}

	public String getTaskdetail() {
		return taskdetail;
	}

	public void setTaskdetail(String taskdetail) {
		this.taskdetail = taskdetail == null ? null : taskdetail.trim();
	}

	public Integer getEid() {
		return eid;
	}

	public void setEid(Integer eid) {
		this.eid = eid;
	}

	public Integer getDodept() {
		return dodept;
	}

	public void setDodept(Integer dodept) {
		this.dodept = dodept;
	}

	public Integer getOtherdodept() {
		return otherdodept;
	}

	public void setOtherdodept(Integer otherdodept) {
		this.otherdodept = otherdodept;
	}

	public Integer getTasklevel() {
		return tasklevel;
	}

	public void setTasklevel(Integer tasklevel) {
		this.tasklevel = tasklevel;
	}

	public Date getBegintime() {
		return begintime;
	}

	public void setBegintime(Date begintime) {
		this.begintime = begintime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Integer getTaskstate() {
		return taskstate;
	}

	public void setTaskstate(Integer taskstate) {
		this.taskstate = taskstate;
	}

	public Integer getDelstate() {
		return delstate;
	}

	public void setDelstate(Integer delstate) {
		this.delstate = delstate;
	}

	public Integer getUrgentstate() {
		return urgentstate;
	}

	public void setUrgentstate(Integer urgentstate) {
		this.urgentstate = urgentstate;
	}

	public Integer getDuedate() {
		return duedate;
	}

	public void setDuedate(Integer duedate) {
		this.duedate = duedate;
	}
}